<?php
class Oauth_users extends CActiveRecord
{
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }
    
    public function tableName()
    {
        return strtolower(get_class($this));
    }
    
    public function relations()
    {
        return array(
            'user' => array(self::BELONGS_TO,'Users','uid'),
        );
    }
}